{ config, lib, pkgs, ... }:

{
  services.xserver = {
    desktopManager.lxqt.enable = true;
    libinput.mouse.accelProfile = "flat";
  };

  environment.lxqt.excludePackages = with pkgs.lxqt; lib.mkForce [
    qps
    lximage-qt
    lxqt-archiver
  ];

  environment.systemPackages = with pkgs; [
    connman-gtk
    mate.engrampa
    xsettingsd
    libsForQt5.qtstyleplugin-kvantum
  ];

  xdg.portal = {
    enable = true;
    extraPortals = with pkgs; [
      lxqt.xdg-desktop-portal-lxqt
    ];
  };
}
